package com.ruoyi.supervise.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.supervise.mapper.CrOperaterecordinfoMapper;
import com.ruoyi.supervise.domain.CrOperaterecordinfo;
import com.ruoyi.supervise.service.ICrOperaterecordinfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 操作记录信息Service业务层处理
 * 
 * @author wtj
 * @date 2019-10-15
 */
@Service
public class CrOperaterecordinfoServiceImpl implements ICrOperaterecordinfoService 
{
    @Autowired
    private CrOperaterecordinfoMapper crOperaterecordinfoMapper;

    /**
     * 查询操作记录信息
     * 
     * @param guid 操作记录信息ID
     * @return 操作记录信息
     */
    @Override
    public CrOperaterecordinfo selectCrOperaterecordinfoById(String guid)
    {
        return crOperaterecordinfoMapper.selectCrOperaterecordinfoById(guid);
    }

    /**
     * 查询操作记录信息列表
     * 
     * @param crOperaterecordinfo 操作记录信息
     * @return 操作记录信息
     */
    @Override
    public List<CrOperaterecordinfo> selectCrOperaterecordinfoList(CrOperaterecordinfo crOperaterecordinfo)
    {
        return crOperaterecordinfoMapper.selectCrOperaterecordinfoList(crOperaterecordinfo);
    }

    /**
     * 新增操作记录信息
     * 
     * @param crOperaterecordinfo 操作记录信息
     * @return 结果
     */
    @Override
    public int insertCrOperaterecordinfo(CrOperaterecordinfo crOperaterecordinfo)
    {
        return crOperaterecordinfoMapper.insertCrOperaterecordinfo(crOperaterecordinfo);
    }

    /**
     * 修改操作记录信息
     * 
     * @param crOperaterecordinfo 操作记录信息
     * @return 结果
     */
    @Override
    public int updateCrOperaterecordinfo(CrOperaterecordinfo crOperaterecordinfo)
    {
        return crOperaterecordinfoMapper.updateCrOperaterecordinfo(crOperaterecordinfo);
    }

    /**
     * 删除操作记录信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCrOperaterecordinfoByIds(String ids)
    {
        return crOperaterecordinfoMapper.deleteCrOperaterecordinfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除操作记录信息信息
     * 
     * @param guid 操作记录信息ID
     * @return 结果
     */
    public int deleteCrOperaterecordinfoById(String guid)
    {
        return crOperaterecordinfoMapper.deleteCrOperaterecordinfoById(guid);
    }
}
